<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/restrito/layout/template.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="content">
        <f:view>

            <p>
                <ui:insert name="content">

                </ui:insert>
            </p>

            <h:form>
                <rich:panel>
                    <f:facet name="header">
                        <h:panelGroup>

                            <h:outputText value="Por favor preencha os dados referentes ao lance" style="font-size: 21px"/>

                        </h:panelGroup>
                    </f:facet>

                    <h:panelGrid columns="1">                         

                        <h:outputText value="Usuário:"/>
                        <h:selectOneMenu value="#{lanceController.pessoaSelecionada}">
                            <f:selectItem itemValue="" itemLabel=" - Selecione - "/>
                            <f:selectItems value="#{lanceController.selectPessoa}"/>
                        </h:selectOneMenu>

                        <h:outputText value="Leilão:" />
                        <h:selectOneMenu value="#{lanceController.leilaoSelecionado}">
                            <f:selectItem itemValue="" itemLabel=" - Selecione - "/>
                            <f:selectItems value="#{lanceController.selectLeilao}"/>
                        </h:selectOneMenu>

                        <h:outputText value="Valor:" />
                        <h:inputText value="#{lanceController.lance.valor}" />

                        <br/>
                        <h:commandButton value="Alterar lance" action="#{lanceController.salvarEdicao()}" style="font-size: 14px"/>
                    </h:panelGrid>
                </rich:panel>

            </h:form>

            <h:messages style="font-size: 13px; color: white;"/>
        </f:view>
    </ui:define>
</ui:composition>